package com.george.shartdingsphere.entity;


import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("product")
public class ProductEntity {

    @TableId
    private Long id;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Long productNumber;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String productName;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Date createTime;

    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private Date updateTime;


}
